﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LibGreen.Protocol.IRC.Utility
{
	internal static class ArrayParsing
	{

		internal static int FindIndex<T> (this T[] ar, int start, int count, Predicate<T> comparer)
		{
			for(int x = start; x < start + count; x++){
				if(comparer(ar[x])){
					return x;
				}
			}
			return -1;
		}
	}
}
